package com.addplus.townmall.server.api.mapper.town;

import com.addplus.townmall.server.api.model.town.OrderDistributionDetail;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * order_distribution Mapper 接口
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-12-28
 */
public interface OrderDistributionDetailMapper extends BaseAddMapper<OrderDistributionDetail> {

    @Select("select  * from order_distribution_detail  a where a.order_id=#{orderId}  and a.order_distribution_id= #{orderDistrId} and a.order_item_id=#{orderItemId}")
    OrderDistributionDetail getOrderDistributionDetail(@Param("orderId") Integer orderId, @Param("orderDistrId") Integer orderDistrId, @Param("orderItemId") Integer orderItemId);
}
